<script type="text/javascript">
var emailPattern = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/ ;
jQuery(document).ready(function(){    
	jQuery("input[name='request']").click(function(){
		var email = jQuery('input[name=email]').val();
		if(email == ''){
			var msg = '<span class="v-error-message"><ul><li><spring:message code="warning.required.change.password.email" /></li></ul></span>';
			jQuery('#v-global-message').html(msg);
		}else if(!emailPattern.test(email)){
			var msg = '<span class="v-error-message"><ul><li><spring:message code="warning.change.password.email.invalid" /></li></ul></span>';
			jQuery('#v-global-message').html(msg);
		}else{
			jQuery('#v-global-message').html('');
			submitForm('requestPasswordReset');
		}    
    });
});
</script>